import Taro from '@tarojs/taro'
import { View } from '@tarojs/components'
import IconFont from '../../components/iconfont';
import './index.scss';
interface IProps {
    size: number
    fontSize: number
    name: 'dianzan' | 'baoyang' | 'xiche' | 'baoyang-youse' | 'youqishua' | 'zan' | 'huodong' | 'youqi' | 'xiuli' | 'anmenchuang' | 'tools-' | 'caozuojiemiantubiao---_gongju' | 'baoyang1' | 'gongjuxuanzhong' | 'xiche1' | 'pinglun5' | 'xiuli1' | 'icon-order' | 'gongju' | 'pinglun6' | 'huodong1' | 'gongju-copy' | 'icon-' | 'pinglun7' | 'shoucang2' | 'gongju1' | 'bjmachining' | 'fenxiang5' | 'jiage' | 'fenxiang2' | 'dianhua' | 'dianhua1' | 'dianhua2' | 'fenxiang3' | 'fenxiang4' | 'xin' | 'xinaixin' | 'haoping' | 'haoping1' | 'good' | 'haoping2' | 'comment' | 'pinglun1' | 'pinglun2' | 'pinglun3' | 'pinglun4' | 'star' | 'nan' | 'nv' | 'eye1' | 'eye' | 'yanjing' | 'close' | 'bofang' | 'guanbi' | 'guanbi1' | 'dianpu' | 'aixin' | 'didian01' | 'shoucang' | 'dianpu1' | 'zuo' | 'right' | 'pinglun' | 'didian' | 'didian1' | 'dianpu2' | 'gongzuodidian' | 'fenxiang' | 'bi' | 'shoucang1' | 'fenxiang1' | 'aixin1';
    title: string
}

export const IconBoxRow = (props: IProps) => {
    return (
        <View className="icon-box-row">
            <IconFont name={props.name} size={props.size} />
            <View className="title"
                style={{
                    fontSize: props.fontSize,
                    paddingLeft: '5px'
                }}
            >{props.title}</View>
        </View>
    )
}
